package com.bk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 帖子
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Innovation implements Serializable {
    /**
     * 帖子状态 0禁用 1启用
     */
    public static final Integer BAN_INNOVATION = 0;
    public static final Integer START_INNOVATION = 1;

    //帖子id
    private Long id;
    //帖子标题
    private String title;
    //帖子内容
    private String content;
    //帖子类型
    private String type;
    //帖子图片
    private String image;
    //发帖者id
    private Long userId;
    //帖子状态  0禁用 1启用
    private Integer status;
    //帖子创建时间
    private LocalDateTime createTime;
    //帖子更新时间
    private LocalDateTime updateTime;

}
